package com.hz.copyingsystem.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hz.common.utils.PageUtils;
import com.hz.common.utils.Query;

import com.hz.copyingsystem.dao.CopybookCharacterDao;
import com.hz.copyingsystem.entity.CopybookCharacterEntity;
import com.hz.copyingsystem.service.CopybookCharacterService;


@Service("copybookCharacterService")
public class CopybookCharacterServiceImpl extends ServiceImpl<CopybookCharacterDao, CopybookCharacterEntity> implements CopybookCharacterService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CopybookCharacterEntity> page = this.page(
                new Query<CopybookCharacterEntity>().getPage(params),
                new QueryWrapper<CopybookCharacterEntity>()
        );

        return new PageUtils(page);
    }

}